﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   						   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    					   xmlns:s="clr-namespace:CreaMotion.Thumbs">

  <!-- RotateThumb Style -->
  <Style TargetType="{x:Type s:RotateThumb}">
    <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
    <Setter Property="Cursor" Value="Hand"/>
    <Setter Property="Control.Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type s:RotateThumb}">
          <Grid Width="30" Height="30">
            <Path Fill="#AAD0D0DD"
                  Stretch="Fill"
                  Data="M 50,100 A 50,50 0 1 1 100,50 H 50 V 100"/>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- RotateDecorator Template -->
  <ControlTemplate x:Key="RotateDecoratorTemplate" TargetType="{x:Type Control}">
    <Grid>
    	<s:RotateThumb Margin="0,-24.333,-28.667,0" VerticalAlignment="Top" HorizontalAlignment="Right" Style="{DynamicResource SpecialRotateThumb}" Height="18.979" Width="25.686">
    		<s:RotateThumb.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform/>
    				<SkewTransform/>
    				<RotateTransform/>
    				<TranslateTransform/>
    			</TransformGroup>
    		</s:RotateThumb.RenderTransform>
    	</s:RotateThumb>
    </Grid>
  </ControlTemplate>

</ResourceDictionary>